<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<h1>商品添加</h1>
	<form action="<%=request.getContextPath()%>/item/toAdd" method="post" enctype="multipart/form-data">
		商品名字:<input type="text" name="name"/> <br /><br />
		
		价&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;格: <input type="text" name="price"/> <br /><br />
		商品分类: <select name="itemcate" style="width:110px;">
					<c:forEach items="${lb}" var="data">
						<option value="${data.id}">${data.name}</option>
					</c:forEach>
				</select> <br /><br />
		url1&nbsp;&nbsp;&nbsp;: <input type="file" name="mfile"/> <br /><br />
		<input type="submit" />
	</form>
</body>
</html>